package basic.io;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;

public class PropertysTest {
  
	public static void main(String[] args) throws IOException {
		
	    	Mystore();
	}
	
	public static void myLoad() throws IOException{
		Properties properties = new Properties();
		FileInputStream fileInputStream = new FileInputStream("prop.txt");
		properties.load(fileInputStream);
		System.out.println(properties);
	}
	
	public static void  Mystore() throws IOException {
		Properties properties = new Properties();
		properties.setProperty("name", "�ٶ�");
		properties.setProperty("salary", "15k");
		FileOutputStream fileOutputStream = new FileOutputStream("prop.txt");
		properties.store(fileOutputStream, "hello");
	}
}
